package com.zmx.b2c.order.dto;

import com.zmx.common.common.dto.BaseDto;
import lombok.Data;
import lombok.ToString;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;

/**
 * @author zhaomxr
 * null
 */
@Data
@ToString
public class B2COrderItemDto extends BaseDto {

    /**
     * null
     */
    private Long orderId;

    /**
     * 活动id
     */
    private Long activeId;

    /**
     * null
     */
    private Long productId;

    /**
     * null
     */
    private BigDecimal price;

    /**
     * null
     */
    private String name;

    /**
     * null
     */
    private Integer quantity;

    /**
     * null
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date ts;

    public B2COrderItemDto() {
    }

    public B2COrderItemDto(Long activeId, Long productId, BigDecimal price, String name, Integer quantity) {
        this.activeId = activeId;
        this.productId = productId;
        this.price = price;
        this.name = name;
        this.quantity = quantity;
    }
}
